  -- Terestian Illhoof --
function spell0_15688(pUnit, Event) --@Fiendish Portal,n/a--
pUnit:FullCastSpellOnTarget(30171,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15688', 2000, 1)
end
function spell1_15688(pUnit, Event) --@Fiendish Portal,n/a--
pUnit:FullCastSpellOnTarget(30179,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15688', 758, 1)
end
function spell2_15688(pUnit, Event) --@Sacrifice,Drain--
pUnit:FullCastSpellOnTarget(30115,pUnit:GetRandomPlayer(0))
pUnit:RegisterEvent('Sorts_15688', 31000, 1)
end
function spell3_15688(pUnit, Event) --@Shadow Bolt,Drain--
pUnit:FullCastSpellOnTarget(30055,pUnit:GetRandomPlayer(0))
pUnit:RegisterEvent('Sorts_15688', 1500, 1)
end
function spell4_15688(pUnit, Event) --@Summon Imp,Drain--
pUnit:FullCastSpellOnTarget(30066,pUnit:GetRandomPlayer(0))
pUnit:RegisterEvent('Sorts_15688', 740, 1)
end
function Sorts_15688(pUnit, Event)
choix_sorts_15688 = math.random(0, 4)
if choix_sorts_15688 == 0 then
pUnit:RegisterEvent('spell0_15688', 1, 1)
end
if choix_sorts_15688 == 1 then
pUnit:RegisterEvent('spell1_15688', 1, 1)
end
if choix_sorts_15688 == 2 then
pUnit:RegisterEvent('spell2_15688', 1, 1)
end
if choix_sorts_15688 == 3 then
pUnit:RegisterEvent('spell3_15688', 1, 1)
end
if choix_sorts_15688 == 4 then
pUnit:RegisterEvent('spell4_15688', 1, 1)
end
end
function mob15688_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15688', math.random(1500, 3000), 1)
end
function mob15688_Leave(pUnit, Event)
end
function mob15688_Kill(pUnit, Event)
end
function mob15688_Die(pUnit, Event)
pUnit:RemoveEvents();
end
RegisterUnitEvent(15688, 1, 'mob15688_Action')
RegisterUnitEvent(15688, 2, 'mob15688_Leave')
RegisterUnitEvent(15688, 3, 'mob15688_Kill')
RegisterUnitEvent(15688, 4, 'mob15688_Die')
